package com.happok.onlineclass.usermanagement.setting.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.happok.onlineclass.usermanagement.setting.po.SmsPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/10/9 14:27
 * @updateUser : chenac
 * @updateTime : 2021/10/9 14:27
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
@Mapper
public interface SmsDAO extends BaseMapper<SmsPO> {

    @Update("update sms set enable = #{enable} where sms_platform = #{smsPlatform}")
    void smsEnable(@Param("smsPlatform") String smsPlatform, @Param("enable") Boolean enable);

    @Update("update sms set enable = #{enable}")
    void smsDisable(@Param("enable") Boolean enable);
}